<!DOCTYPE html>


  <html class="light page-post">


<head>
  <meta charset="utf-8">
  
  <title>通达信函数大全速查【未完】 | Bright</title>

  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  
    <meta name="keywords" content="股票,资料,通达信,笔记," />
  

  <meta name="description" content="通达信函数大全速查行情函数   函数名 作用 用法 简写    HIGH 返回该周期的最高价 HIGH H   LOW 返回该周期的最低价 LOW L   CLOSE 返回该周期的收盘价 CLOSE C   VOL 返回该周期的成交量 VOL V   OPEN 返回该周期的开盘价 OPEN O   ADVANCE 返回该周期的上涨家数 ADVANCE（仅对大盘）    DECLINE 返回该周期的">
<meta property="og:type" content="article">
<meta property="og:title" content="通达信函数大全速查【未完】">
<meta property="og:url" content="http://example.com/2021/06/04/%E9%80%9A%E8%BE%BE%E4%BF%A1%E5%87%BD%E6%95%B0%E5%A4%A7%E5%85%A8%E9%80%9F%E6%9F%A5/index.html">
<meta property="og:site_name" content="Bright">
<meta property="og:description" content="通达信函数大全速查行情函数   函数名 作用 用法 简写    HIGH 返回该周期的最高价 HIGH H   LOW 返回该周期的最低价 LOW L   CLOSE 返回该周期的收盘价 CLOSE C   VOL 返回该周期的成交量 VOL V   OPEN 返回该周期的开盘价 OPEN O   ADVANCE 返回该周期的上涨家数 ADVANCE（仅对大盘）    DECLINE 返回该周期的">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2021-06-04T14:12:00.000Z">
<meta property="article:modified_time" content="2021-07-05T15:17:32.908Z">
<meta property="article:author" content="璀璨丶">
<meta property="article:tag" content="股票">
<meta property="article:tag" content="资料">
<meta property="article:tag" content="通达信">
<meta property="article:tag" content="笔记">
<meta name="twitter:card" content="summary">

  

  
    <link rel="icon" href="/favicon.ico">
  

  <link href="/css/styles.css?v=c114cbeddx" rel="stylesheet">


  
    
<link rel="stylesheet" href="/css/personal-style.css">

  

  
<!-- Google Analytics -->
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-38189205-1', 'auto');
ga('send', 'pageview');

</script>
<!-- End Google Analytics -->


  
  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?57e94d016e201fba3603a8a2b0263af0";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>


  
  <script type="text/javascript">
	(function(){
	    var bp = document.createElement('script');
	    var curProtocol = window.location.protocol.split(':')[0];
	    if (curProtocol === 'https') {
	        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
	    }
	    else {
	        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
	    }
	    var s = document.getElementsByTagName("script")[0];
	    s.parentNode.insertBefore(bp, s);
	})();
  </script>



  
    <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.3.0/css/font-awesome.min.css">
  

<meta name="generator" content="Hexo 5.2.0"></head>

<body>


  
    <span id="toolbox-mobile" class="toolbox-mobile">盒子</span>
  

  <div class="post-header CENTER">
   
  <div class="toolbox">
    <a class="toolbox-entry" href="/">
      <span class="toolbox-entry-text">盒子</span>
      <i class="icon-angle-down"></i>
      <i class="icon-home"></i>
    </a>
    <ul class="list-toolbox">
      
        <li class="item-toolbox">
          <a
            class="CIRCLE"
            href="/archives/"
            rel="noopener noreferrer"
            target="_self"
            >
            博客
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="CIRCLE"
            href="/category/"
            rel="noopener noreferrer"
            target="_self"
            >
            分类
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="CIRCLE"
            href="/tag/"
            rel="noopener noreferrer"
            target="_self"
            >
            标签
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="CIRCLE"
            href="/link/"
            rel="noopener noreferrer"
            target="_self"
            >
            友链
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="CIRCLE"
            href="/about/"
            rel="noopener noreferrer"
            target="_self"
            >
            关于
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="CIRCLE"
            href="/atom.xml"
            rel="noopener noreferrer"
            target="_blank"
            >
            RSS
          </a>
        </li>
      
        <li class="item-toolbox">
          <a
            class="CIRCLE"
            href="/search/"
            rel="noopener noreferrer"
            target="_self"
            >
            搜索
          </a>
        </li>
      
    </ul>
  </div>


</div>


  <div id="toc" class="toc-article">
    <strong class="toc-title">文章目录</strong>
    <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#%E9%80%9A%E8%BE%BE%E4%BF%A1%E5%87%BD%E6%95%B0%E5%A4%A7%E5%85%A8%E9%80%9F%E6%9F%A5"><span class="toc-text">通达信函数大全速查</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%A1%8C%E6%83%85%E5%87%BD%E6%95%B0"><span class="toc-text">行情函数</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%97%B6%E9%97%B4%E5%87%BD%E6%95%B0"><span class="toc-text">时间函数</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%BC%95%E7%94%A8%E5%87%BD%E6%95%B0"><span class="toc-text">引用函数</span></a></li></ol></li></ol>
  </div>



<div class="content content-post CENTER">
   <article id="post-通达信函数大全速查" class="article article-type-post" itemprop="blogPost">
  <header class="article-header">
    <h1 class="post-title">通达信函数大全速查【未完】</h1>

    <div class="article-meta">
      <span>
        <i class="icon-calendar"></i>
        <span>2021.06.04</span>
      </span>

      
        <span class="article-author">
          <i class="icon-user"></i>
          <span>璀璨丶</span>
        </span>
      

      
  <span class="article-category">
    <i class="icon-list"></i>
    <a class="article-category-link" href="/categories/%E8%B5%84%E6%96%99/">资料</a>
  </span>



      

      
      <i class="fa fa-eye"></i> 
        <span id="busuanzi_container_page_pv">
           &nbsp热度 <span id="busuanzi_value_page_pv">
           <i class="fa fa-spinner fa-spin"></i></span>℃
        </span>
      
      
    </div>
  </header>

  <div class="article-content">
    
      <h1 id="通达信函数大全速查"><a href="#通达信函数大全速查" class="headerlink" title="通达信函数大全速查"></a>通达信函数大全速查</h1><h2 id="行情函数"><a href="#行情函数" class="headerlink" title="行情函数"></a>行情函数</h2><table>
<thead>
<tr>
<th>函数名</th>
<th>作用</th>
<th>用法</th>
<th>简写</th>
</tr>
</thead>
<tbody><tr>
<td>HIGH</td>
<td>返回该周期的最高价</td>
<td>HIGH</td>
<td>H</td>
</tr>
<tr>
<td>LOW</td>
<td>返回该周期的最低价</td>
<td>LOW</td>
<td>L</td>
</tr>
<tr>
<td>CLOSE</td>
<td>返回该周期的收盘价</td>
<td>CLOSE</td>
<td>C</td>
</tr>
<tr>
<td>VOL</td>
<td>返回该周期的成交量</td>
<td>VOL</td>
<td>V</td>
</tr>
<tr>
<td>OPEN</td>
<td>返回该周期的开盘价</td>
<td>OPEN</td>
<td>O</td>
</tr>
<tr>
<td>ADVANCE</td>
<td>返回该周期的上涨家数</td>
<td>ADVANCE（仅对大盘）</td>
<td></td>
</tr>
<tr>
<td>DECLINE</td>
<td>返回该周期的下跌家数</td>
<td>DECLINE（仅对大盘）</td>
<td></td>
</tr>
<tr>
<td>ZSTJJ</td>
<td>返回该周期的分时图均价，对于分时图周期指标有效</td>
<td></td>
<td></td>
</tr>
<tr>
<td>VOLINSTK</td>
<td>持仓量</td>
<td>期货期权</td>
<td></td>
</tr>
<tr>
<td>QHJSJ</td>
<td>结算价</td>
<td>期货期权</td>
<td></td>
</tr>
<tr>
<td>HKSHORTVOL</td>
<td>抛空量</td>
<td>港股</td>
<td></td>
</tr>
<tr>
<td>DHIGH</td>
<td>不定周期最高价，属于未来函数</td>
<td></td>
<td></td>
</tr>
<tr>
<td>DLOW</td>
<td>不定周期最低价，属于未来函数</td>
<td></td>
<td></td>
</tr>
<tr>
<td>DCLOSE</td>
<td>不定周期收盘价，属于未来函数</td>
<td></td>
<td></td>
</tr>
<tr>
<td>DVOL</td>
<td>不定周期成交量，属于未来函数</td>
<td></td>
<td></td>
</tr>
</tbody></table>
<h2 id="时间函数"><a href="#时间函数" class="headerlink" title="时间函数"></a>时间函数</h2><table>
<thead>
<tr>
<th>函数名</th>
<th>作用</th>
<th>用法</th>
<th>简写</th>
</tr>
</thead>
<tbody><tr>
<td>PERIOD</td>
<td>取得周期类型</td>
<td>结果从0到13，依次分别是1/5/15/30/60分钟,日/周/月,多分钟,多日/季/年,5秒线/多秒线,13以上为自定义周期</td>
<td></td>
</tr>
<tr>
<td>DATE</td>
<td>取得该周期从1900年以来的年月日</td>
<td>DATE　例如函数返回1000101，表示2000年1月1日</td>
<td></td>
</tr>
<tr>
<td>TIME</td>
<td>取得该周期的时分，适用于日线以下周期</td>
<td>TIME 函数返回有效值为（0000-2359）</td>
<td></td>
</tr>
<tr>
<td>TIME2</td>
<td>取得该周期的时分秒，适用于日线以下周期</td>
<td>TIME2 函数返回有效值为（000000-235959）</td>
<td></td>
</tr>
<tr>
<td>YEAR</td>
<td>取得该周期的年份</td>
<td>YEAR</td>
<td></td>
</tr>
<tr>
<td>MONTH</td>
<td>取得该周期的月份</td>
<td>MONTH 有效值为（1-12）</td>
<td></td>
</tr>
<tr>
<td>WEEKOFYEAR</td>
<td>取得该周是年内第几个周</td>
<td>WEEKOFYEAR</td>
<td></td>
</tr>
<tr>
<td>WEEKDAY</td>
<td>取得该周期的星期数</td>
<td>WEEKDAY 范围（1234560）</td>
<td></td>
</tr>
<tr>
<td>DAYSTOTODAY</td>
<td>取得该周期的日期离今天的天数</td>
<td>DAYSTOTODAY</td>
<td></td>
</tr>
<tr>
<td>DAY</td>
<td>该周期的日期</td>
<td>DAY 范围（1-31）</td>
<td></td>
</tr>
<tr>
<td>HOUR</td>
<td>取得该周期的小时数</td>
<td>HOUR 范围 （0-23）</td>
<td></td>
</tr>
<tr>
<td>MINUTE</td>
<td>取得该周期的分钟数</td>
<td>MINUTE 范围（0-59）</td>
<td></td>
</tr>
<tr>
<td>FROMOPEN</td>
<td>求此刻距开盘有多长时间</td>
<td>FROMOPEN 单位为分钟，当前早上十点，返回31</td>
<td></td>
</tr>
</tbody></table>
<h2 id="引用函数"><a href="#引用函数" class="headerlink" title="引用函数"></a>引用函数</h2><table>
<thead>
<tr>
<th>函数名</th>
<th>作用</th>
<th>用法</th>
<th>示例</th>
</tr>
</thead>
<tbody><tr>
<td>DRAWNULL</td>
<td>返回无效数</td>
<td>DRAWNULL</td>
<td>IF(C&gt;REF(C,1),C,DRAWNULL)表示下跌时不画线</td>
</tr>
<tr>
<td>BACKSET</td>
<td>将当前位置到若干周期前的数据设为1</td>
<td>BACKSET(X,Y) 若X非0，则将当前位置到N周期前的数值设为1</td>
<td>BACKSET(CLOSE&gt;OPEN,2)若收阳则将该周期及前一周期数值设为1，否则为0</td>
</tr>
<tr>
<td>BARSCOUNT</td>
<td>求总的周期数</td>
<td>BARSCOUNT(X)第一个有效数据到当前的天数</td>
<td>BARSCOUNT(CLOSE)对于日线数据取得上市以来的总交易日数</td>
</tr>
<tr>
<td>CURRBARSCOUNT</td>
<td>到最后的交易日数</td>
<td>CURRBARSCOUNT 求到最后交易日的周期数</td>
<td></td>
</tr>
<tr>
<td>TOTALBARSCOUNT</td>
<td>总的周期数</td>
<td></td>
<td></td>
</tr>
<tr>
<td>BARSLAST</td>
<td>上一次条件成立的位置</td>
<td>BARSSINCE(X)第一次X不为0到现在的天数</td>
<td>BARSSINCE(HIGH&gt;10)表示股价超过10元到当前的周期数</td>
</tr>
<tr>
<td>COUNT</td>
<td>统计满足条件的周期数</td>
<td>COUNT(X,N) 统计N周期中满足X条件的周期数，若N=0则从第一个有效值开始</td>
<td>COUNT(C&gt;O,20)表示20周期内收阳的周期数</td>
</tr>
<tr>
<td>HHV</td>
<td>最高值</td>
<td>HHV(X,N)求N周期内X最高值，N=0则从第一个有效值开始</td>
<td>HHV(HIGHT,30)表示求30日内最高价</td>
</tr>
<tr>
<td>HHVBARS</td>
<td>求上一高点到当前的周期数</td>
<td>HHVBARS(X,N) 求N周期内X最高值到当前周期数，N=0表示从第一个有效值开始统计</td>
<td>HHVBARS(HIGH,0)求得历史新高到当前的周期数</td>
</tr>
<tr>
<td>LLV</td>
<td>求最低值</td>
<td>LLV(X,N)求N周期内X最低值，N=0则从第一个有效值开始。</td>
<td>LLV(LOW,0)表示求历史最低价</td>
</tr>
<tr>
<td>LLVBARS</td>
<td>求上一低点到当前的周期数</td>
<td>LLVBARS(X,N)求N周期内X最低值到当前周期数，N=0表示从第一个有效值开始统计。</td>
<td>LLVBARS(HIGH,20)求得20日最低点到当前的周期数</td>
</tr>
<tr>
<td>REVERSE</td>
<td>求相反数</td>
<td>REVERSE(X)返回-X</td>
<td></td>
</tr>
<tr>
<td>REF</td>
<td>向前引用若干周期前的数据</td>
<td>REF(X,A) 引用A周期前的X值</td>
<td>REF(CLOSE,BARSCOUNT(C)-1)表示第二根K线的收盘价</td>
</tr>
<tr>
<td>REFDATE</td>
<td>引用指定日期的数据</td>
<td>REFDATE(X,A) 引用A日期的X值</td>
<td>REFDATE(CLOSE,1011208)表示2001年12月08日的收盘价</td>
</tr>
<tr>
<td>SUM</td>
<td>求和</td>
<td>SUM(X,N)统计N周期中X的总和，N=0则从第一个有效值开始</td>
<td>SUM(VOL,0)表示统计从上市第一天以来的成交量总和</td>
</tr>
<tr>
<td>FILTER</td>
<td>过滤连续出现的新号</td>
<td>FILTER(X,N)X满足条件后，删除其后N周期内的数据置为0</td>
<td>FILTER(CLOSE&gt;OPEN,5)查找阳线，5天内再次出现的阳线不被记录在内</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody></table>

    
  </div>

</article>


   
  <div class="text-center donation">
    <div class="inner-donation">
      <span class="btn-donation">支持一下</span>
      <div class="donation-body">
        <div class="tip text-center">扫一扫，支持璀璨丶</div>
        <ul>
        
          <li class="item">
            
              <span>微信扫一扫</span>
            
            <img src="/images/qr-wechat.png" alt="">
          </li>
        
          <li class="item">
            
              <span>支付宝扫一扫</span>
            
            <img src="/images/qr-alipay.png" alt="">
          </li>
        
        </ul>
      </div>
    </div>
  </div>


   
  <div class="box-prev-next clearfix">
    <a class="show pull-left" href="/2021/06/03/2021.6.2%20%E5%B0%8F%E8%AE%B0/">
        <i class="icon icon-angle-left"></i>
    </a>
    <a class="show pull-right" href="/2021/06/14/%E3%80%906.14%E7%AB%AF%E5%8D%88%E3%80%916%E6%9C%88%E4%B8%8A%E5%8D%8A%E6%9C%88%E5%9B%9E%E9%A1%BE/">
        <i class="icon icon-angle-right"></i>
    </a>
  </div>




</div>


  <a id="backTop" class="back-top">
    <i class="icon-angle-up"></i>
  </a>




  <div class="modal" id="modal">
  <span id="cover" class="cover hide"></span>
  <div id="modal-dialog" class="modal-dialog hide-dialog">
    <div class="modal-header">
      <span id="close" class="btn-close">关闭</span>
    </div>
    <hr>
    <div class="modal-body">
      <ul class="list-toolbox">
        
          <li class="item-toolbox">
            <a
              class="CIRCLE"
              href="/archives/"
              rel="noopener noreferrer"
              target="_self"
              >
              博客
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="CIRCLE"
              href="/category/"
              rel="noopener noreferrer"
              target="_self"
              >
              分类
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="CIRCLE"
              href="/tag/"
              rel="noopener noreferrer"
              target="_self"
              >
              标签
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="CIRCLE"
              href="/link/"
              rel="noopener noreferrer"
              target="_self"
              >
              友链
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="CIRCLE"
              href="/about/"
              rel="noopener noreferrer"
              target="_self"
              >
              关于
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="CIRCLE"
              href="/atom.xml"
              rel="noopener noreferrer"
              target="_blank"
              >
              RSS
            </a>
          </li>
        
          <li class="item-toolbox">
            <a
              class="CIRCLE"
              href="/search/"
              rel="noopener noreferrer"
              target="_self"
              >
              搜索
            </a>
          </li>
        
      </ul>

    </div>
  </div>
</div>



  
      <div class="fexo-comments comments-post">
    

    

    
    

    

    
    

    

<!-- Gitalk评论插件通用代码 -->
<div id="gitalk-container"></div>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<script src="//cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.js"></script>
<script>
const gitalk = new Gitalk({
  clientID: '277317290454635afa73',
  clientSecret: '78223c859304da5e8d71bfce136d436c6ff95c37',
  repo: 'blog-comment',
  owner: 'forsigner',
  // 在这里设置一下截取前50个字符串, 这是因为 github 对 label 的长度有了要求, 如果超过
  // 50个字符串则会报错.
  // id: location.pathname.split('/').pop().substring(0, 49),
  id: md5(location.pathname),
  admin: ['forsigner'],
  // facebook-like distraction free mode
  distractionFreeMode: false
})
gitalk.render('gitalk-container')
</script>
<!-- Gitalk代码结束 -->



  </div>

  

  <script type="text/javascript">
  function loadScript(url, callback) {
    var script = document.createElement('script')
    script.type = 'text/javascript';

    if (script.readyState) { //IE
      script.onreadystatechange = function() {
        if (script.readyState == 'loaded' ||
          script.readyState == 'complete') {
          script.onreadystatechange = null;
          callback();
        }
      };
    } else { //Others
      script.onload = function() {
        callback();
      };
    }

    script.src = url;
    document.getElementsByTagName('head')[0].appendChild(script);
  }

  window.onload = function() {
    loadScript('/js/bundle.js?235683', function() {
      // load success
    });
  }
</script>

</body>
</html>
